import request from './request';

//用户个人信息接口
export const userInfo = data => {
	return request({
		url: '/api/demand/getUserInfo',
		method: 'get',
		params: data
	});
};
//获取部门
export const depart = data => {
	return request({
		url: '/api/common/get_depart',
		method: 'get',
		params: data
	});
};
//根据部门获取人员
export const departUser = data => {
	return request({
		url: '/api/common/user_list/'+departId,
		method: 'get',
		params: data
	});
};

//获取审批人
export const userList = data => {
	return request({
		url: '/api/common/get_check_user/'+data.type+'/'+data.step,
		method: 'get',
		params: data
	});
};
//获取公司所有人
export const allUser = data => {
	return request({
		url: 'api/common/user_list/0',
		method: 'get',
		params: data
	});
};

//获取导航消息角标
export const getCount = data => {
	return request({
		url: '/admin/common/getCount',
		method: 'get',
		params: data
	});
};

//登录
export const login = data => {
	return request({
		url: '/admin/login',
		method: 'post',
		data: data
	});
};
